Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

async write for easylog #227

Closed
wants to merge 13 commits into from

Conversation

UniverseParticle
Copy link

Why

Now user can async write for easy log

What is changing

  1. The log initialization interface has added a configuration, whether to enable asynchronous writing
  2. Added a thread pool for async write

Example

@CLAassistant
Copy link

CLAassistant commented Feb 25, 2023

CLA assistant check
All committers have signed the CLA.

@github-actions
Copy link

Code Coverage Report
for detail, goto summary download Artifacts

Filename                                              Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
asio_util/asio_coro_util.hpp                                 40                 7    82.50%         176                20    88.64%           2                 0   100.00%
asio_util/asio_util.hpp                                       3                 1    66.67%          20                 7    65.00%           2                 1    50.00%
asio_util/io_context_pool.hpp                                 8                 3    62.50%          50                12    76.00%          10                 1    90.00%
coro_rpc/coro_rpc/common_service.hpp                          3                 0   100.00%          55                 0   100.00%          26                 8    69.23%
coro_rpc/coro_rpc/context.hpp                                 6                 0   100.00%          79                 6    92.41%          18                 5    72.22%
coro_rpc/coro_rpc/coro_connection.hpp                        22                 2    90.91%         298                34    88.59%         102                36    64.71%
coro_rpc/coro_rpc/coro_rpc_client.hpp                        28                 3    89.29%         434                49    88.71%         102                33    67.65%
coro_rpc/coro_rpc/coro_rpc_server.hpp                        21                 0   100.00%         225                25    88.89%          82                39    52.44%
coro_rpc/coro_rpc/protocol/coro_rpc_protocol.hpp              5                 0   100.00%          40                 3    92.50%           8                 1    87.50%
coro_rpc/coro_rpc/protocol/struct_pack_protocol.hpp           3                 0   100.00%          16                 0   100.00%           0                 0         -
coro_rpc/coro_rpc/router.hpp                                 22                 0   100.00%         265                24    90.94%          46                25    45.65%
coro_rpc/coro_rpc/rpc_execute.hpp                             5                 0   100.00%         260                 0   100.00%           2                 0   100.00%
easylog/appender.hpp                                          6                 6     0.00%          71                71     0.00%          28                28     0.00%
easylog/easylog.h                                             9                 2    77.78%          55                15    72.73%          10                 6    40.00%
easylog/record.hpp                                           12                 1    91.67%          53                 8    84.91%          14                 3    78.57%
struct_pack/struct_pack.hpp                                   9                 2    77.78%          58                10    82.76%           2                 1    50.00%
struct_pack/struct_pack/error_code.h                          3                 3     0.00%          22                22     0.00%           0                 0         -
struct_pack/struct_pack/md5_constexpr.hpp                    20                19     5.00%         163               162     0.61%           0                 0         -
struct_pack/struct_pack/reflection.h                          2                 0   100.00%         549                12    97.81%           0                 0         -
struct_pack/struct_pack/struct_pack_impl.hpp                 44                11    75.00%        1101               227    79.38%         100                40    60.00%
struct_pack/struct_pack/tuple.hpp                             1                 1     0.00%           1                 1     0.00%           0                 0         -
util/dragonbox.h                                             31                31     0.00%         164               164     0.00%           0                 0         -
util/dragonbox_to_chars.h                                     3                 3     0.00%         441               441     0.00%           0                 0         -
util/expected.hpp                                            61                 6    90.16%         171                25    85.38%          28                 6    78.57%
util/magic_names.hpp                                          1                 1     0.00%          11                11     0.00%           0                 0         -
util/meta_string.hpp                                         11                 5    54.55%          50                30    40.00%           8                 0   100.00%
util/string_finder.hpp                                        2                 2     0.00%          11                11     0.00%           0                 0         -
util/type_traits.h                                            1                 0   100.00%           9                 0   100.00%           0                 0         -
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                       382               109    71.47%        4848              1390    71.33%         590               233    60.51%

@github-actions
Copy link

Code Coverage Report
for detail, goto summary download Artifacts

Filename                                              Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
asio_util/asio_coro_util.hpp                                 40                 7    82.50%         176                20    88.64%           2                 0   100.00%
asio_util/asio_util.hpp                                       3                 1    66.67%          20                 7    65.00%           2                 1    50.00%
asio_util/io_context_pool.hpp                                 8                 3    62.50%          50                12    76.00%          10                 1    90.00%
coro_rpc/coro_rpc/common_service.hpp                          3                 0   100.00%          55                 0   100.00%          26                 8    69.23%
coro_rpc/coro_rpc/context.hpp                                 6                 0   100.00%          79                 6    92.41%          18                 5    72.22%
coro_rpc/coro_rpc/coro_connection.hpp                        22                 2    90.91%         298                34    88.59%         102                36    64.71%
coro_rpc/coro_rpc/coro_rpc_client.hpp                        28                 3    89.29%         434                49    88.71%         102                33    67.65%
coro_rpc/coro_rpc/coro_rpc_server.hpp                        21                 0   100.00%         225                25    88.89%          82                39    52.44%
coro_rpc/coro_rpc/protocol/coro_rpc_protocol.hpp              5                 0   100.00%          40                 3    92.50%           8                 1    87.50%
coro_rpc/coro_rpc/protocol/struct_pack_protocol.hpp           3                 0   100.00%          16                 0   100.00%           0                 0         -
coro_rpc/coro_rpc/router.hpp                                 22                 0   100.00%         265                24    90.94%          46                25    45.65%
coro_rpc/coro_rpc/rpc_execute.hpp                             5                 0   100.00%         260                 0   100.00%           2                 0   100.00%
easylog/appender.hpp                                          6                 6     0.00%          71                71     0.00%          28                28     0.00%
easylog/easylog.h                                             9                 2    77.78%          55                15    72.73%          10                 6    40.00%
easylog/record.hpp                                           12                 1    91.67%          53                 8    84.91%          14                 3    78.57%
struct_pack/struct_pack.hpp                                   9                 2    77.78%          58                10    82.76%           2                 1    50.00%
struct_pack/struct_pack/error_code.h                          3                 3     0.00%          22                22     0.00%           0                 0         -
struct_pack/struct_pack/md5_constexpr.hpp                    20                19     5.00%         163               162     0.61%           0                 0         -
struct_pack/struct_pack/reflection.h                          2                 0   100.00%         549                12    97.81%           0                 0         -
struct_pack/struct_pack/struct_pack_impl.hpp                 44                11    75.00%        1101               227    79.38%         100                40    60.00%
struct_pack/struct_pack/tuple.hpp                             1                 1     0.00%           1                 1     0.00%           0                 0         -
util/dragonbox.h                                             31                31     0.00%         164               164     0.00%           0                 0         -
util/dragonbox_to_chars.h                                     3                 3     0.00%         441               441     0.00%           0                 0         -
util/expected.hpp                                            61                 6    90.16%         171                25    85.38%          28                 6    78.57%
util/magic_names.hpp                                          1                 1     0.00%          11                11     0.00%           0                 0         -
util/meta_string.hpp                                         11                 5    54.55%          50                30    40.00%           8                 0   100.00%
util/string_finder.hpp                                        2                 2     0.00%          11                11     0.00%           0                 0         -
util/type_traits.h                                            1                 0   100.00%           9                 0   100.00%           0                 0         -
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                       382               109    71.47%        4848              1390    71.33%         590               233    60.51%

@github-actions
Copy link

Code Coverage Report
for detail, goto summary download Artifacts

Filename                                              Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
asio_util/asio_coro_util.hpp                                 40                 7    82.50%         176                20    88.64%           2                 0   100.00%
asio_util/asio_util.hpp                                       3                 1    66.67%          20                 7    65.00%           2                 1    50.00%
asio_util/io_context_pool.hpp                                 8                 3    62.50%          50                12    76.00%          10                 1    90.00%
coro_rpc/coro_rpc/common_service.hpp                          3                 0   100.00%          55                 0   100.00%          26                 8    69.23%
coro_rpc/coro_rpc/context.hpp                                 8                 0   100.00%         109                 6    94.50%          18                 5    72.22%
coro_rpc/coro_rpc/coro_connection.hpp                        22                 2    90.91%         298                34    88.59%         102                36    64.71%
coro_rpc/coro_rpc/coro_rpc_client.hpp                        28                 3    89.29%         434                49    88.71%         102                33    67.65%
coro_rpc/coro_rpc/coro_rpc_server.hpp                        21                 0   100.00%         225                25    88.89%          82                39    52.44%
coro_rpc/coro_rpc/protocol/coro_rpc_protocol.hpp              5                 0   100.00%          40                 3    92.50%           8                 1    87.50%
coro_rpc/coro_rpc/protocol/struct_pack_protocol.hpp           3                 0   100.00%          16                 0   100.00%           0                 0         -
coro_rpc/coro_rpc/router.hpp                                 22                 0   100.00%         265                24    90.94%          46                25    45.65%
coro_rpc/coro_rpc/rpc_execute.hpp                             3                 0   100.00%         234                 0   100.00%           2                 0   100.00%
easylog/appender.hpp                                          6                 6     0.00%          71                71     0.00%          28                28     0.00%
easylog/easylog.h                                             9                 2    77.78%          55                15    72.73%          10                 6    40.00%
easylog/record.hpp                                           12                 1    91.67%          53                 8    84.91%          14                 3    78.57%
struct_pack/struct_pack.hpp                                   9                 2    77.78%          58                10    82.76%           2                 1    50.00%
struct_pack/struct_pack/error_code.h                          3                 3     0.00%          22                22     0.00%           0                 0         -
struct_pack/struct_pack/md5_constexpr.hpp                    20                19     5.00%         163               162     0.61%           0                 0         -
struct_pack/struct_pack/reflection.h                          2                 0   100.00%         549                12    97.81%           0                 0         -
struct_pack/struct_pack/struct_pack_impl.hpp                 44                11    75.00%        1101               227    79.38%         100                40    60.00%
struct_pack/struct_pack/tuple.hpp                             1                 1     0.00%           1                 1     0.00%           0                 0         -
util/dragonbox.h                                             31                31     0.00%         164               164     0.00%           0                 0         -
util/dragonbox_to_chars.h                                     3                 3     0.00%         441               441     0.00%           0                 0         -
util/expected.hpp                                            61                 6    90.16%         171                25    85.38%          28                 6    78.57%
util/magic_names.hpp                                          1                 1     0.00%          11                11     0.00%           0                 0         -
util/meta_string.hpp                                         11                 5    54.55%          50                30    40.00%           8                 0   100.00%
util/string_finder.hpp                                        2                 2     0.00%          11                11     0.00%           0                 0         -
util/type_traits.h                                            1                 0   100.00%           9                 0   100.00%           0                 0         -
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                       382               109    71.47%        4852              1390    71.35%         590               233    60.51%

@github-actions
Copy link

Code Coverage Report
for detail, goto summary download Artifacts

Filename                                              Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
asio_util/asio_coro_util.hpp                                 40                 7    82.50%         176                20    88.64%           2                 0   100.00%
asio_util/asio_util.hpp                                       3                 1    66.67%          20                 7    65.00%           2                 1    50.00%
asio_util/io_context_pool.hpp                                 8                 3    62.50%          50                12    76.00%          10                 1    90.00%
coro_rpc/coro_rpc/common_service.hpp                          3                 0   100.00%          55                 0   100.00%          26                 8    69.23%
coro_rpc/coro_rpc/context.hpp                                 8                 0   100.00%         109                 6    94.50%          18                 5    72.22%
coro_rpc/coro_rpc/coro_connection.hpp                        22                 2    90.91%         298                34    88.59%         102                36    64.71%
coro_rpc/coro_rpc/coro_rpc_client.hpp                        28                 3    89.29%         434                49    88.71%         102                33    67.65%
coro_rpc/coro_rpc/coro_rpc_server.hpp                        21                 0   100.00%         225                25    88.89%          82                39    52.44%
coro_rpc/coro_rpc/protocol/coro_rpc_protocol.hpp              5                 0   100.00%          40                 3    92.50%           8                 1    87.50%
coro_rpc/coro_rpc/protocol/struct_pack_protocol.hpp           3                 0   100.00%          16                 0   100.00%           0                 0         -
coro_rpc/coro_rpc/router.hpp                                 22                 0   100.00%         265                24    90.94%          46                25    45.65%
coro_rpc/coro_rpc/rpc_execute.hpp                             3                 0   100.00%         234                 0   100.00%           2                 0   100.00%
easylog/appender.hpp                                          6                 6     0.00%          71                71     0.00%          28                28     0.00%
easylog/easylog.h                                             9                 2    77.78%          55                15    72.73%          10                 6    40.00%
easylog/record.hpp                                           12                 1    91.67%          53                 8    84.91%          14                 3    78.57%
struct_pack/struct_pack.hpp                                   9                 2    77.78%          58                10    82.76%           2                 1    50.00%
struct_pack/struct_pack/error_code.h                          3                 3     0.00%          22                22     0.00%           0                 0         -
struct_pack/struct_pack/md5_constexpr.hpp                    20                19     5.00%         163               162     0.61%           0                 0         -
struct_pack/struct_pack/reflection.h                          2                 0   100.00%         549                12    97.81%           0                 0         -
struct_pack/struct_pack/struct_pack_impl.hpp                 44                11    75.00%        1101               227    79.38%         100                40    60.00%
struct_pack/struct_pack/tuple.hpp                             1                 1     0.00%           1                 1     0.00%           0                 0         -
util/dragonbox.h                                             31                31     0.00%         164               164     0.00%           0                 0         -
util/dragonbox_to_chars.h                                     3                 3     0.00%         441               441     0.00%           0                 0         -
util/expected.hpp                                            61                 6    90.16%         171                25    85.38%          28                 6    78.57%
util/magic_names.hpp                                          1                 1     0.00%          11                11     0.00%           0                 0         -
util/meta_string.hpp                                         11                 5    54.55%          50                30    40.00%           8                 0   100.00%
util/string_finder.hpp                                        2                 2     0.00%          11                11     0.00%           0                 0         -
util/type_traits.h                                            1                 0   100.00%           9                 0   100.00%           0                 0         -
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                       382               109    71.47%        4852              1390    71.35%         590               233    60.51%

When the program exits,
the thread is still writing asynchronously,
but the appender has been released.
The appender lifetime follows the logger.
@github-actions
Copy link

Code Coverage Report
for detail, goto summary download Artifacts

Filename                                              Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
asio_util/asio_coro_util.hpp                                 40                 7    82.50%         176                20    88.64%           2                 0   100.00%
asio_util/asio_util.hpp                                       3                 1    66.67%          20                 7    65.00%           2                 1    50.00%
asio_util/io_context_pool.hpp                                 8                 3    62.50%          50                12    76.00%          10                 1    90.00%
coro_rpc/coro_rpc/common_service.hpp                          3                 0   100.00%          55                 0   100.00%          26                 8    69.23%
coro_rpc/coro_rpc/context.hpp                                 8                 0   100.00%         109                 6    94.50%          18                 5    72.22%
coro_rpc/coro_rpc/coro_connection.hpp                        22                 2    90.91%         298                34    88.59%         102                36    64.71%
coro_rpc/coro_rpc/coro_rpc_client.hpp                        28                 3    89.29%         434                49    88.71%         102                33    67.65%
coro_rpc/coro_rpc/coro_rpc_server.hpp                        21                 0   100.00%         225                25    88.89%          82                39    52.44%
coro_rpc/coro_rpc/protocol/coro_rpc_protocol.hpp              5                 0   100.00%          40                 3    92.50%           8                 1    87.50%
coro_rpc/coro_rpc/protocol/struct_pack_protocol.hpp           3                 0   100.00%          16                 0   100.00%           0                 0         -
coro_rpc/coro_rpc/router.hpp                                 22                 0   100.00%         265                24    90.94%          46                25    45.65%
coro_rpc/coro_rpc/rpc_execute.hpp                             3                 0   100.00%         234                 0   100.00%           2                 0   100.00%
easylog/appender.hpp                                          6                 6     0.00%          71                71     0.00%          28                28     0.00%
easylog/easylog.h                                             9                 2    77.78%          55                15    72.73%          10                 6    40.00%
easylog/record.hpp                                           12                 1    91.67%          53                 8    84.91%          14                 3    78.57%
struct_pack/struct_pack.hpp                                   9                 2    77.78%          58                10    82.76%           2                 1    50.00%
struct_pack/struct_pack/error_code.h                          3                 3     0.00%          22                22     0.00%           0                 0         -
struct_pack/struct_pack/md5_constexpr.hpp                    20                19     5.00%         163               162     0.61%           0                 0         -
struct_pack/struct_pack/reflection.h                          2                 0   100.00%         549                12    97.81%           0                 0         -
struct_pack/struct_pack/struct_pack_impl.hpp                 44                11    75.00%        1101               227    79.38%         100                40    60.00%
struct_pack/struct_pack/tuple.hpp                             1                 1     0.00%           1                 1     0.00%           0                 0         -
util/dragonbox.h                                             31                31     0.00%         164               164     0.00%           0                 0         -
util/dragonbox_to_chars.h                                     3                 3     0.00%         441               441     0.00%           0                 0         -
util/expected.hpp                                            61                 6    90.16%         171                25    85.38%          28                 6    78.57%
util/magic_names.hpp                                          1                 1     0.00%          11                11     0.00%           0                 0         -
util/meta_string.hpp                                         11                 5    54.55%          50                30    40.00%           8                 0   100.00%
util/string_finder.hpp                                        2                 2     0.00%          11                11     0.00%           0                 0         -
util/type_traits.h                                            1                 0   100.00%           9                 0   100.00%           0                 0         -
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                       382               109    71.47%        4852              1390    71.35%         590               233    60.51%

@github-actions
Copy link

github-actions bot commented Mar 1, 2023

Code Coverage Report
for detail, goto summary download Artifacts

Filename                                              Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
asio_util/asio_coro_util.hpp                                 40                 7    82.50%         176                20    88.64%           2                 0   100.00%
asio_util/asio_util.hpp                                       3                 1    66.67%          20                 7    65.00%           2                 1    50.00%
asio_util/io_context_pool.hpp                                 8                 3    62.50%          50                12    76.00%          10                 1    90.00%
coro_rpc/coro_rpc/common_service.hpp                          3                 0   100.00%          55                 0   100.00%          26                 8    69.23%
coro_rpc/coro_rpc/context.hpp                                 8                 0   100.00%         109                 6    94.50%          18                 5    72.22%
coro_rpc/coro_rpc/coro_connection.hpp                        22                 2    90.91%         298                29    90.27%         102                34    66.67%
coro_rpc/coro_rpc/coro_rpc_client.hpp                        28                 3    89.29%         434                49    88.71%         102                33    67.65%
coro_rpc/coro_rpc/coro_rpc_server.hpp                        21                 0   100.00%         225                25    88.89%          82                39    52.44%
coro_rpc/coro_rpc/protocol/coro_rpc_protocol.hpp              5                 0   100.00%          40                 3    92.50%           8                 1    87.50%
coro_rpc/coro_rpc/protocol/struct_pack_protocol.hpp           3                 0   100.00%          16                 0   100.00%           0                 0         -
coro_rpc/coro_rpc/router.hpp                                 22                 0   100.00%         265                24    90.94%          46                25    45.65%
coro_rpc/coro_rpc/rpc_execute.hpp                             3                 0   100.00%         234                 0   100.00%           2                 0   100.00%
easylog/appender.hpp                                          6                 6     0.00%          71                71     0.00%          28                28     0.00%
easylog/easylog.h                                             9                 2    77.78%          55                15    72.73%          10                 6    40.00%
easylog/record.hpp                                           12                 1    91.67%          53                 8    84.91%          14                 3    78.57%
struct_pack/struct_pack.hpp                                   9                 2    77.78%          58                10    82.76%           2                 1    50.00%
struct_pack/struct_pack/error_code.h                          3                 3     0.00%          22                22     0.00%           0                 0         -
struct_pack/struct_pack/md5_constexpr.hpp                    20                19     5.00%         163               162     0.61%           0                 0         -
struct_pack/struct_pack/reflection.h                          2                 0   100.00%         549                12    97.81%           0                 0         -
struct_pack/struct_pack/struct_pack_impl.hpp                 45                12    73.33%        1106               232    79.02%         100                40    60.00%
struct_pack/struct_pack/tuple.hpp                             1                 1     0.00%           1                 1     0.00%           0                 0         -
util/dragonbox.h                                             31                31     0.00%         164               164     0.00%           0                 0         -
util/dragonbox_to_chars.h                                     3                 3     0.00%         441               441     0.00%           0                 0         -
util/expected.hpp                                            61                 6    90.16%         171                25    85.38%          28                 6    78.57%
util/magic_names.hpp                                          1                 1     0.00%          11                11     0.00%           0                 0         -
util/meta_string.hpp                                         11                 5    54.55%          50                30    40.00%           8                 0   100.00%
util/string_finder.hpp                                        2                 2     0.00%          11                11     0.00%           0                 0         -
util/type_traits.h                                            1                 0   100.00%           9                 0   100.00%           0                 0         -
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                       383               110    71.28%        4857              1390    71.38%         590               231    60.85%

@github-actions
Copy link

github-actions bot commented Mar 1, 2023

Code Coverage Report
for detail, goto summary download Artifacts

Filename                                              Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
asio_util/asio_coro_util.hpp                                 40                 7    82.50%         176                20    88.64%           2                 0   100.00%
asio_util/asio_util.hpp                                       3                 1    66.67%          20                 7    65.00%           2                 1    50.00%
asio_util/io_context_pool.hpp                                 8                 3    62.50%          50                12    76.00%          10                 1    90.00%
coro_rpc/coro_rpc/common_service.hpp                          3                 0   100.00%          55                 0   100.00%          26                 8    69.23%
coro_rpc/coro_rpc/context.hpp                                 8                 0   100.00%         109                 6    94.50%          18                 5    72.22%
coro_rpc/coro_rpc/coro_connection.hpp                        22                 2    90.91%         298                34    88.59%         102                36    64.71%
coro_rpc/coro_rpc/coro_rpc_client.hpp                        28                 3    89.29%         434                49    88.71%         102                33    67.65%
coro_rpc/coro_rpc/coro_rpc_server.hpp                        21                 0   100.00%         225                25    88.89%          82                39    52.44%
coro_rpc/coro_rpc/protocol/coro_rpc_protocol.hpp              5                 0   100.00%          40                 3    92.50%           8                 1    87.50%
coro_rpc/coro_rpc/protocol/struct_pack_protocol.hpp           3                 0   100.00%          16                 0   100.00%           0                 0         -
coro_rpc/coro_rpc/router.hpp                                 22                 0   100.00%         265                24    90.94%          46                25    45.65%
coro_rpc/coro_rpc/rpc_execute.hpp                             3                 0   100.00%         234                 0   100.00%           2                 0   100.00%
easylog/appender.hpp                                          6                 6     0.00%          71                71     0.00%          28                28     0.00%
easylog/easylog.h                                             9                 2    77.78%          55                15    72.73%          10                 6    40.00%
easylog/record.hpp                                           12                 1    91.67%          53                 8    84.91%          14                 3    78.57%
struct_pack/struct_pack.hpp                                   9                 2    77.78%          58                10    82.76%           2                 1    50.00%
struct_pack/struct_pack/error_code.h                          3                 3     0.00%          22                22     0.00%           0                 0         -
struct_pack/struct_pack/md5_constexpr.hpp                    20                19     5.00%         163               162     0.61%           0                 0         -
struct_pack/struct_pack/reflection.h                          2                 0   100.00%         549                12    97.81%           0                 0         -
struct_pack/struct_pack/struct_pack_impl.hpp                 45                12    73.33%        1106               232    79.02%         100                40    60.00%
struct_pack/struct_pack/tuple.hpp                             1                 1     0.00%           1                 1     0.00%           0                 0         -
util/dragonbox.h                                             31                31     0.00%         164               164     0.00%           0                 0         -
util/dragonbox_to_chars.h                                     3                 3     0.00%         441               441     0.00%           0                 0         -
util/expected.hpp                                            61                 6    90.16%         171                25    85.38%          28                 6    78.57%
util/magic_names.hpp                                          1                 1     0.00%          11                11     0.00%           0                 0         -
util/meta_string.hpp                                         11                 5    54.55%          50                30    40.00%           8                 0   100.00%
util/string_finder.hpp                                        2                 2     0.00%          11                11     0.00%           0                 0         -
util/type_traits.h                                            1                 0   100.00%           9                 0   100.00%           0                 0         -
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                       383               110    71.28%        4857              1395    71.28%         590               233    60.51%

@github-actions
Copy link

github-actions bot commented Mar 1, 2023

Code Coverage Report
for detail, goto summary download Artifacts

Filename                                              Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
asio_util/asio_coro_util.hpp                                 40                 7    82.50%         176                20    88.64%           2                 0   100.00%
asio_util/asio_util.hpp                                       3                 1    66.67%          20                 7    65.00%           2                 1    50.00%
asio_util/io_context_pool.hpp                                 8                 3    62.50%          50                12    76.00%          10                 1    90.00%
coro_rpc/coro_rpc/common_service.hpp                          3                 0   100.00%          55                 0   100.00%          26                 8    69.23%
coro_rpc/coro_rpc/context.hpp                                 8                 0   100.00%         109                 6    94.50%          18                 5    72.22%
coro_rpc/coro_rpc/coro_connection.hpp                        22                 2    90.91%         298                34    88.59%         102                36    64.71%
coro_rpc/coro_rpc/coro_rpc_client.hpp                        28                 3    89.29%         434                49    88.71%         102                33    67.65%
coro_rpc/coro_rpc/coro_rpc_server.hpp                        21                 0   100.00%         225                25    88.89%          82                39    52.44%
coro_rpc/coro_rpc/protocol/coro_rpc_protocol.hpp              5                 0   100.00%          40                 3    92.50%           8                 1    87.50%
coro_rpc/coro_rpc/protocol/struct_pack_protocol.hpp           3                 0   100.00%          16                 0   100.00%           0                 0         -
coro_rpc/coro_rpc/router.hpp                                 22                 0   100.00%         265                24    90.94%          46                25    45.65%
coro_rpc/coro_rpc/rpc_execute.hpp                             3                 0   100.00%         234                 0   100.00%           2                 0   100.00%
easylog/appender.hpp                                          6                 6     0.00%          71                71     0.00%          28                28     0.00%
easylog/easylog.h                                             9                 2    77.78%          55                15    72.73%          10                 5    50.00%
easylog/record.hpp                                           12                 1    91.67%          53                 8    84.91%          14                 3    78.57%
struct_pack/struct_pack.hpp                                   9                 2    77.78%          58                10    82.76%           2                 1    50.00%
struct_pack/struct_pack/error_code.h                          3                 3     0.00%          22                22     0.00%           0                 0         -
struct_pack/struct_pack/md5_constexpr.hpp                    20                19     5.00%         163               162     0.61%           0                 0         -
struct_pack/struct_pack/reflection.h                          2                 0   100.00%         549                12    97.81%           0                 0         -
struct_pack/struct_pack/struct_pack_impl.hpp                 45                12    73.33%        1106               232    79.02%         100                40    60.00%
struct_pack/struct_pack/tuple.hpp                             1                 1     0.00%           1                 1     0.00%           0                 0         -
util/dragonbox.h                                             31                31     0.00%         164               164     0.00%           0                 0         -
util/dragonbox_to_chars.h                                     3                 3     0.00%         441               441     0.00%           0                 0         -
util/expected.hpp                                            61                 6    90.16%         171                25    85.38%          28                 6    78.57%
util/magic_names.hpp                                          1                 1     0.00%          11                11     0.00%           0                 0         -
util/meta_string.hpp                                         11                 5    54.55%          50                30    40.00%           8                 0   100.00%
util/string_finder.hpp                                        2                 2     0.00%          11                11     0.00%           0                 0         -
util/type_traits.h                                            1                 0   100.00%           9                 0   100.00%           0                 0         -
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                       383               110    71.28%        4857              1395    71.28%         590               232    60.68%

@github-actions
Copy link

github-actions bot commented Mar 3, 2023

Code Coverage Report
for detail, goto summary download Artifacts

Filename                                              Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
asio_util/asio_coro_util.hpp                                 40                 6    85.00%         174                17    90.23%           2                 0   100.00%
asio_util/asio_util.hpp                                       3                 1    66.67%          20                 7    65.00%           2                 1    50.00%
asio_util/io_context_pool.hpp                                 7                 2    71.43%          42                 4    90.48%          10                 1    90.00%
coro_rpc/coro_rpc/common_service.hpp                          3                 0   100.00%          55                 0   100.00%          26                 8    69.23%
coro_rpc/coro_rpc/context.hpp                                 8                 0   100.00%         109                 6    94.50%          18                 5    72.22%
coro_rpc/coro_rpc/coro_connection.hpp                        22                 2    90.91%         298                34    88.59%         102                36    64.71%
coro_rpc/coro_rpc/coro_rpc_client.hpp                        27                 3    88.89%         430                49    88.60%         102                33    67.65%
coro_rpc/coro_rpc/coro_rpc_server.hpp                        19                 0   100.00%         212                25    88.21%          76                36    52.63%
coro_rpc/coro_rpc/protocol/coro_rpc_protocol.hpp              5                 0   100.00%          40                 3    92.50%           8                 1    87.50%
coro_rpc/coro_rpc/protocol/struct_pack_protocol.hpp           3                 0   100.00%          16                 0   100.00%           0                 0         -
coro_rpc/coro_rpc/router.hpp                                 22                 0   100.00%         265                24    90.94%          46                25    45.65%
coro_rpc/coro_rpc/rpc_execute.hpp                             3                 0   100.00%         234                 0   100.00%           2                 0   100.00%
easylog/appender.hpp                                          6                 6     0.00%          71                71     0.00%          28                28     0.00%
easylog/easylog.h                                             9                 2    77.78%          55                15    72.73%          10                 6    40.00%
easylog/record.hpp                                           12                 1    91.67%          53                 8    84.91%          14                 3    78.57%
struct_pack/struct_pack.hpp                                   9                 2    77.78%          58                10    82.76%           2                 1    50.00%
struct_pack/struct_pack/error_code.h                          3                 3     0.00%          22                22     0.00%           0                 0         -
struct_pack/struct_pack/md5_constexpr.hpp                    20                19     5.00%         163               162     0.61%           0                 0         -
struct_pack/struct_pack/reflection.h                          2                 0   100.00%         549                12    97.81%           0                 0         -
struct_pack/struct_pack/struct_pack_impl.hpp                 45                12    73.33%        1106               232    79.02%         100                40    60.00%
struct_pack/struct_pack/tuple.hpp                             1                 1     0.00%           1                 1     0.00%           0                 0         -
util/dragonbox.h                                             31                31     0.00%         164               164     0.00%           0                 0         -
util/dragonbox_to_chars.h                                     3                 3     0.00%         441               441     0.00%           0                 0         -
util/expected.hpp                                            61                 6    90.16%         171                25    85.38%          28                 6    78.57%
util/magic_names.hpp                                          1                 1     0.00%          11                11     0.00%           0                 0         -
util/meta_string.hpp                                         11                 5    54.55%          50                30    40.00%           8                 0   100.00%
util/string_finder.hpp                                        2                 2     0.00%          11                11     0.00%           0                 0         -
util/type_traits.h                                            1                 0   100.00%           9                 0   100.00%           0                 0         -
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                       379               108    71.50%        4830              1384    71.35%         584               230    60.62%

@github-actions
Copy link

github-actions bot commented Mar 3, 2023

Code Coverage Report
for detail, goto summary download Artifacts

Filename                                              Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
asio_util/asio_coro_util.hpp                                 40                 6    85.00%         174                17    90.23%           2                 0   100.00%
asio_util/asio_util.hpp                                       3                 1    66.67%          20                 7    65.00%           2                 1    50.00%
asio_util/io_context_pool.hpp                                 7                 2    71.43%          42                 4    90.48%          10                 1    90.00%
coro_rpc/coro_rpc/common_service.hpp                          3                 0   100.00%          55                 0   100.00%          26                 8    69.23%
coro_rpc/coro_rpc/context.hpp                                 8                 0   100.00%         109                 6    94.50%          18                 5    72.22%
coro_rpc/coro_rpc/coro_connection.hpp                        22                 2    90.91%         298                29    90.27%         102                34    66.67%
coro_rpc/coro_rpc/coro_rpc_client.hpp                        27                 3    88.89%         430                49    88.60%         102                33    67.65%
coro_rpc/coro_rpc/coro_rpc_server.hpp                        19                 0   100.00%         212                25    88.21%          76                36    52.63%
coro_rpc/coro_rpc/protocol/coro_rpc_protocol.hpp              5                 0   100.00%          40                 3    92.50%           8                 1    87.50%
coro_rpc/coro_rpc/protocol/struct_pack_protocol.hpp           3                 0   100.00%          16                 0   100.00%           0                 0         -
coro_rpc/coro_rpc/router.hpp                                 22                 0   100.00%         265                24    90.94%          46                25    45.65%
coro_rpc/coro_rpc/rpc_execute.hpp                             3                 0   100.00%         234                 0   100.00%           2                 0   100.00%
easylog/appender.hpp                                          6                 6     0.00%          71                71     0.00%          28                28     0.00%
easylog/easylog.h                                             9                 2    77.78%          55                15    72.73%          10                 5    50.00%
easylog/record.hpp                                           12                 1    91.67%          53                 8    84.91%          14                 3    78.57%
struct_pack/struct_pack.hpp                                   9                 2    77.78%          58                10    82.76%           2                 1    50.00%
struct_pack/struct_pack/error_code.h                          3                 3     0.00%          22                22     0.00%           0                 0         -
struct_pack/struct_pack/md5_constexpr.hpp                    20                19     5.00%         163               162     0.61%           0                 0         -
struct_pack/struct_pack/reflection.h                          2                 0   100.00%         549                12    97.81%           0                 0         -
struct_pack/struct_pack/struct_pack_impl.hpp                 45                12    73.33%        1106               232    79.02%         100                40    60.00%
struct_pack/struct_pack/tuple.hpp                             1                 1     0.00%           1                 1     0.00%           0                 0         -
util/dragonbox.h                                             31                31     0.00%         164               164     0.00%           0                 0         -
util/dragonbox_to_chars.h                                     3                 3     0.00%         441               441     0.00%           0                 0         -
util/expected.hpp                                            61                 6    90.16%         171                25    85.38%          28                 6    78.57%
util/magic_names.hpp                                          1                 1     0.00%          11                11     0.00%           0                 0         -
util/meta_string.hpp                                         11                 5    54.55%          50                30    40.00%           8                 0   100.00%
util/string_finder.hpp                                        2                 2     0.00%          11                11     0.00%           0                 0         -
util/type_traits.h                                            1                 0   100.00%           9                 0   100.00%           0                 0         -
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                       379               108    71.50%        4830              1379    71.45%         584               227    61.13%

@github-actions
Copy link

github-actions bot commented Mar 6, 2023

Code Coverage Report
for detail, goto summary download Artifacts

Filename                                              Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
asio_util/asio_coro_util.hpp                                 40                 6    85.00%         174                17    90.23%           2                 0   100.00%
asio_util/asio_util.hpp                                       3                 1    66.67%          20                 7    65.00%           2                 1    50.00%
asio_util/io_context_pool.hpp                                 7                 2    71.43%          42                 4    90.48%          10                 1    90.00%
coro_rpc/coro_rpc/common_service.hpp                          3                 0   100.00%          55                 0   100.00%          26                 8    69.23%
coro_rpc/coro_rpc/context.hpp                                 8                 0   100.00%         109                 6    94.50%          18                 5    72.22%
coro_rpc/coro_rpc/coro_connection.hpp                        22                 2    90.91%         298                34    88.59%         102                36    64.71%
coro_rpc/coro_rpc/coro_rpc_client.hpp                        27                 3    88.89%         430                49    88.60%         102                33    67.65%
coro_rpc/coro_rpc/coro_rpc_server.hpp                        19                 0   100.00%         212                25    88.21%          76                36    52.63%
coro_rpc/coro_rpc/protocol/coro_rpc_protocol.hpp              5                 0   100.00%          40                 3    92.50%           8                 1    87.50%
coro_rpc/coro_rpc/protocol/struct_pack_protocol.hpp           3                 0   100.00%          16                 0   100.00%           0                 0         -
coro_rpc/coro_rpc/router.hpp                                 22                 0   100.00%         265                24    90.94%          46                25    45.65%
coro_rpc/coro_rpc/rpc_execute.hpp                             3                 0   100.00%         234                 0   100.00%           2                 0   100.00%
easylog/appender.hpp                                          6                 6     0.00%          71                71     0.00%          28                28     0.00%
easylog/easylog.h                                             9                 2    77.78%          55                15    72.73%          10                 6    40.00%
easylog/record.hpp                                           12                 1    91.67%          53                 8    84.91%          14                 3    78.57%
struct_pack/struct_pack.hpp                                   9                 2    77.78%          58                10    82.76%           2                 1    50.00%
struct_pack/struct_pack/error_code.h                          3                 3     0.00%          22                22     0.00%           0                 0         -
struct_pack/struct_pack/md5_constexpr.hpp                    20                19     5.00%         163               162     0.61%           0                 0         -
struct_pack/struct_pack/reflection.h                          2                 0   100.00%         549                12    97.81%           0                 0         -
struct_pack/struct_pack/struct_pack_impl.hpp                 45                12    73.33%        1106               232    79.02%         100                40    60.00%
struct_pack/struct_pack/tuple.hpp                             1                 1     0.00%           1                 1     0.00%           0                 0         -
util/dragonbox.h                                             31                31     0.00%         164               164     0.00%           0                 0         -
util/dragonbox_to_chars.h                                     3                 3     0.00%         441               441     0.00%           0                 0         -
util/expected.hpp                                            61                 6    90.16%         171                25    85.38%          28                 6    78.57%
util/magic_names.hpp                                          1                 1     0.00%          11                11     0.00%           0                 0         -
util/meta_string.hpp                                         11                 5    54.55%          50                30    40.00%           8                 0   100.00%
util/string_finder.hpp                                        2                 2     0.00%          11                11     0.00%           0                 0         -
util/type_traits.h                                            1                 0   100.00%           9                 0   100.00%           0                 0         -
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                       379               108    71.50%        4830              1384    71.35%         584               230    60.62%

@qicosmos
Copy link
Collaborator

done in #333

@qicosmos qicosmos closed this Jun 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants